﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="results.aspx.cs" Inherits="Hired.results"
    MasterPageFile="Hired2Div.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="HeadPlaceHolder">
    <style type="text/css">
        .results_header
        {
            float: left;
            margin-top: 10px;
            width: 123px;
            height: 15px;
            background: url(/images/resultsheader.png) no-repeat;
        }
        .results_content
        {
            float: left;
            margin-top: 5px;
        }
        .collapsePanelHeader
        {      
	        width:100%;		
	        color: White;
	        background: url("/images/searchResultsHeader.png");
	        background-repeat:repeat-x;
	        font-weight:bold;
	        cursor: pointer; 
	        vertical-align: middle;
	        font-family: Helvetica, Arial, sans-serif;
	        font-size:medium;
        }
        .positionResults
        {
            margin-top: 30px;
            margin-left: 15px;
            width:85%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="LeftPlaceHolder">
    <div class="results_header">
    </div>
    <div class="positionResults">
<!--Jobs-->
<div>
<asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderJobs" runat="server"  
            TargetControlID="pnlJobsResults"
            ExpandControlID="TitlePanelJobs" 
            CollapseControlID="TitlePanelJobs" 
            Collapsed="True"
            TextLabelID="Label1" 
            ExpandedText="(Hide Details...)" 
            CollapsedText="(Show Details...)"
            ImageControlID="Image1" 
            ExpandedImage="/images/collapse_blue.jpg" 
            CollapsedImage="/images/expand_blue.jpg"
            SuppressPostBack="true">
</asp:CollapsiblePanelExtender>    

    <asp:Panel ID="TitlePanelJobs" runat="server" CssClass="collapsePanelHeader"> 
        <asp:Image style="float:right" ID="Image1" runat="server" ImageUrl="/images/expand_blue.jpg"/>
        &nbsp;&nbsp;&nbsp;Jobs&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" style="float:right">(Show Details...)</asp:Label>
    </asp:Panel>

    <asp:Panel ID="pnlJobsResults" runat="server">  
   
    <div class="results_content">
        <asp:GridView ID="gridViewResultsJobs" runat="server" 
            AutoGenerateColumns="False" GridLines="Horizontal" AllowSorting="True" 
            BorderStyle="None" CellPadding="10" AllowPaging="True">
            <AlternatingRowStyle BackColor="#CCCCFF" />
            <Columns>
                <asp:TemplateField HeaderText="Title">
                    <ItemTemplate>
                        <asp:LinkButton ID="lblTitle" runat="server" Font-Bold="True" 
                            Text='<%# Eval("Title") %>' PostBackUrl='<%# "viewjob.aspx?id=" + Eval("JobID") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Description" HeaderText="Description" />
                <asp:BoundField DataField="Industry" HeaderText="Industry" />
                <asp:BoundField DataField="EstimatedSalary" HeaderText="Estimated Salary" />
            </Columns>
            <HeaderStyle BackColor="#9933FF" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="#9900FF" />
            <RowStyle BorderStyle="Outset" HorizontalAlign="Left" VerticalAlign="Middle" />
        </asp:GridView>
        <asp:Label ID="lblJobsResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label></div>
            </asp:Panel>

<!--People-->
     <asp:Panel ID="TitlePanelPeople" runat="server" CssClass="collapsePanelHeader"> 
           <asp:Image style="float:right" ID="Image2" runat="server" ImageUrl="/images/expand_blue.jpg"/>&nbsp;&nbsp;
           People&nbsp;&nbsp;
           <asp:Label ID="Label2" runat="server" style="float:right">(Show Details...)</asp:Label>

    </asp:Panel>
  
    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderPeople" runat="server"  
            TargetControlID="pnlPeopleResults"
            ExpandControlID="TitlePanelPeople" 
            CollapseControlID="TitlePanelPeople" 
            Collapsed="True"
            TextLabelID="Label2" 
            ExpandedText="(Hide Details...)" 
            CollapsedText="(Show Details...)"
            ImageControlID="Image2" 
            ExpandedImage="/images/collapse_blue.jpg" 
            CollapsedImage="/images/expand_blue.jpg"
            SuppressPostBack="true">
    </asp:CollapsiblePanelExtender>

    <asp:Panel ID="pnlPeopleResults" runat="server">
    
    <div class="results_content">
        <asp:GridView ID="gridViewResultsPeople" runat="server" 
            AutoGenerateColumns="False" AllowSorting="True" 
            BorderStyle="None" CellPadding="10" 
            GridLines="Horizontal" AllowPaging="True">
            <AlternatingRowStyle BackColor="#CCCCFF" />
            <Columns>
                <asp:TemplateField HeaderText="Username">
                    <ItemTemplate>
                        <asp:LinkButton ID="lblUsername" runat="server" Text='<%# Eval("Username") %>' PostBackUrl='<%# "viewprofile.aspx?username=" +  Eval("Username") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                <asp:BoundField DataField="Specialization" HeaderText="Specialization" />
                <asp:BoundField DataField="WebsiteURL" HeaderText="Website" />
            </Columns>

            <HeaderStyle BackColor="#9933FF" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="#9900FF" />
            <RowStyle BorderStyle="Outset" HorizontalAlign="Left" VerticalAlign="Middle" />

        </asp:GridView>
        <asp:Label ID="lblPeopleResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label></div>
            </asp:Panel>

<!--Companies-->
    <asp:Panel ID="TitlePanelCompanies" runat="server" CssClass="collapsePanelHeader"> 
           <asp:Image style="float:right" ID="Image4" runat="server" ImageUrl="/images/expand_blue.jpg"/>&nbsp;&nbsp;
           Companies&nbsp;&nbsp;
           <asp:Label ID="Label4" runat="server" style="float:right">(Show Details...)</asp:Label>
    </asp:Panel>

    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderCompanies" runat="server"  
            TargetControlID="pnlCompaniesResults"
            ExpandControlID="TitlePanelCompanies" 
            CollapseControlID="TitlePanelCompanies" 
            Collapsed="True"
            TextLabelID="Label4" 
            ExpandedText="(Hide Details...)" 
            CollapsedText="(Show Details...)"
            ImageControlID="Image4" 
            ExpandedImage="/images/collapse_blue.jpg" 
            CollapsedImage="/images/expand_blue.jpg"
            SuppressPostBack="true">
    </asp:CollapsiblePanelExtender>

    <asp:Panel ID="pnlCompaniesResults" runat="server">
   
    <div class="results_content">
        <asp:GridView ID="gridViewResultsCompanies" runat="server" 
            AutoGenerateColumns="False" AllowSorting="True" 
            BorderStyle="Outset" BorderWidth="2px" CellPadding="10" 
            GridLines="Horizontal" AllowPaging="True">

            <AlternatingRowStyle BackColor="#CCCCFF" />

            <Columns>
                <asp:TemplateField HeaderText="Username">
                    <ItemTemplate>
                        <asp:LinkButton ID="lblUsername" runat="server" Text='<%# Eval("Username") %>' PostBackUrl='<%# "viewprofile.aspx?username=" +  Eval("Username") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
                <asp:BoundField DataField="PostalCode" HeaderText="Postal Code" />
                <asp:BoundField DataField="ContactNumber" HeaderText="Contact Number" />
                <asp:BoundField DataField="WebsiteURL" HeaderText="Website" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
            </Columns>

            <HeaderStyle BackColor="#9933FF" BorderColor="#9933FF" BorderStyle="Outset" 
                ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="#9900FF" />
            <RowStyle BorderStyle="Outset" HorizontalAlign="Left" VerticalAlign="Middle" />

        </asp:GridView>
        <asp:Label ID="lblCompaniesResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label></div>
             </asp:Panel>
             </div>
             </div><%--
<!--Courses-->
    <asp:Panel ID="TitlePanelCourses" runat="server" CssClass="collapsePanelHeader"> 
           <asp:Image style="float:right" ID="Image3" runat="server" ImageUrl="/images/expand_blue.jpg"/>&nbsp;&nbsp;
           Courses&nbsp;&nbsp;
           <asp:Label ID="Label3" runat="server" style="float:right">(Show Details...)</asp:Label>
    </asp:Panel>

    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderCourses" runat="server"  
            TargetControlID="pnlCoursesResults"
            ExpandControlID="TitlePanelCourses" 
            CollapseControlID="TitlePanelCourses" 
            Collapsed="True"
            TextLabelID="Label3" 
            ExpandedText="(Hide Details...)" 
            CollapsedText="(Show Details...)"
            ImageControlID="Image3" 
            ExpandedImage="/images/collapse_blue.jpg" 
            CollapsedImage="/images/expand_blue.jpg"
            SuppressPostBack="true">
    </asp:CollapsiblePanelExtender>

    <asp:Panel ID="pnlCoursesResults" runat="server">
   
    <div class="results_content">
        <asp:GridView ID="gridViewResultsCourses" runat="server" 
            AutoGenerateColumns="False" AllowSorting="True" 
            BorderStyle="Outset" BorderWidth="2px" CellPadding="10" 
            GridLines="Horizontal">

            <Columns>
                <asp:BoundField DataField="Provider" HeaderText="Provider" />
                <asp:BoundField DataField="Title" HeaderText="Title" />
                <asp:BoundField DataField="Description" HeaderText="Description" />
                <asp:BoundField DataField="Type" HeaderText="Type" />
                <asp:BoundField DataField="Industry" HeaderText="Industry" />
                <asp:BoundField DataField="Location" HeaderText="Location" />
            </Columns>

            <HeaderStyle BackColor="#9933FF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BorderStyle="Outset" HorizontalAlign="Left" VerticalAlign="Middle" />

        </asp:GridView>
        <asp:Label ID="lblCoursesResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label></div>
            </asp:Panel>
--%>
   <%-- <!--Questions-->
    <asp:Panel ID="pnlQuestionsResults" runat="server">
    
    <div class="results_category">
        <img src="images/catQuestions.png" /></div>
    <div class="results_content">
        <asp:GridView ID="gridViewResultsQuestions" runat="server">

        </asp:GridView>
        <asp:Label ID="lblQuestionsResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label></div>
            </asp:Panel>
    <!--Answers-->
    <asp:Panel ID="pnlAnswersResults" runat="server">
 
    <div class="results_category">
        <img src="images/catAnswers.png" /></div>
    <div class="results_content">
        <asp:GridView ID="gridViewResultsAnswers" runat="server">

        </asp:GridView>
        <asp:Label ID="lblAnswersResults" runat="server" Text="No results were found." 
            Visible="False"></asp:Label>
    </div>
       </asp:Panel>--%>
</asp:Content>
